<%--
功能：获取指定商品目录
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<%@ tag import="org.springframework.context.ApplicationContext" %>
<%@ tag import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ tag import="com.probiz.estore.catalog.service.ProductCategoryManager" %>
<%@ tag import="com.probiz.estore.common.model.catalog.ProductCategory" %>

<%@ attribute name="categoryPath" type="java.lang.String" required="true" description="目录path"%>
<%@ attribute name="returnCategoryName" type="java.lang.String" required="true" description="目录名"%>

<%
	ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(session.getServletContext());
	ProductCategoryManager productCategoryManager = (ProductCategoryManager) ctx.getBean("productCategoryManager");
	Integer categoryId = productCategoryManager.getCategoryIdByCategoryPath(categoryPath);
	request.setAttribute(returnCategoryName,productCategoryManager.getById(categoryId));
	
%>

